<template>
  <!-- 进入hid -->
  <div class="bg-full">
    <HeaderNav></HeaderNav>
    <!-- 主要内容区域 -->
    <div class="main-content">
      <!-- 中间大Logo -->
      <div class="center-logo">
        <img
          src="../assets/imgs/Frame.png"
          alt="EWEADN HUB"
          class="frame-img"
        />
      </div>

      <!-- 描述文字 -->
      <p class="description">
        在这里您可以进入配置您的EWEADN设备，尝试一些与众不同的设置，按您的喜好个性化定制您的设备
      </p>
      <p class="description">
        当完成配置后,后台将不再使用，只需要保存、关闭、享受即可。仅支持Chrome、Edge、Opera
        浏览器
      </p>

      <!-- 设备信息框 -->
      <div class="device-info">
        <div class="info-title">目前支持的设备包含:</div>
        <div class="device-list">【磁轴键盘】DEEP68/DEEP80</div>
        <div class="loading-text">更多设备正在适配中...</div>
      </div>

      <!-- 进入HUB按钮 -->
      <button class="hub-button" @click="handleConnect">进入HUB</button>
    </div>
  </div>
</template>

<script setup>
import HeaderNav from "./HeaderNav.vue";
const emit = defineEmits(["btnClcik"]); // 声明自定义事件
const handleConnect = async () => {
  emit("btnClcik");
};
</script>

<style scoped>
.bg-full {
  /* background-image: url("../assets/imgs/bgi.png"); */
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  color: white;
}

/* 主要内容区域 */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

/* 中间大Logo */
.center-logo {
  margin-top: 100px;
  margin-bottom: 30px;
}

.frame-img {
  width: 502px;
  height: 213px;
  filter: brightness(1.2);
  margin-bottom: 50px;
}

/* 标题 */
.main-title {
  font-size: 48px;
  font-weight: bold;
  margin: 0 0 40px 0;
  letter-spacing: 2px;
}

/* 描述文字 */
.description {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 10px 0;
  color: #e0e0e0;
  text-align: justify;
  color: rgba(255, 255, 255, 0.8);
}

.browser-info {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 40px 0;
  max-width: 600px;
  color: #ccc;
}

/* 设备信息框 */
.device-info {
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 40px;
  margin-top: 20px;
  width: 842px;
  height: 154px;
  box-sizing: border-box;
  padding: 10px 20px;
  text-align: left;
}

.info-title {
  font-size: 16px;
  margin-bottom: 12px;
  color: #f0f0f0;
}

.device-list {
  font-size: 14px;
  margin-bottom: 16px;
  color: #e0e0e0;
  padding: 8px 0;
}

.loading-text {
  font-size: 14px;
  color: #bbb;
}

/* 进入HUB按钮 */
.hub-button {
  width: 200px;
  height: 44px;
  background: linear-gradient(135deg, #ff6b35, #ff4500);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.hub-button:hover {
  background: linear-gradient(135deg, #ff4500, #ff6b35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.hub-button:active {
  transform: translateY(0);
}
</style>
